package com.googlecode.sftpant;

import java.io.File;

import me.kolovos.sftpant.SftpCommand;

public class PutCommand extends SftpCommand {
	
	protected File src;
	protected String dst;
	protected int mode;
	
	@Override
	public void execute() throws Exception {
		channel.put(src.getAbsolutePath(), dst, null, mode);
	}

	public File getSrc() {
		return src;
	}

	public void setSrc(File src) {
		this.src = src;
	}

	public String getDst() {
		return dst;
	}

	public void setDst(String dst) {
		this.dst = dst;
	}

	public int getMode() {
		return mode;
	}
	
	public void setMode(int mode) {
		this.mode = mode;
	}
	
}
